package cn.luischen.service.meta.impl;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.apache.commons.lang3.StringUtils;
import cn.luischen.model.MetaDomain;
import cn.luischen.dto.cond.MetaCond;
import cn.luischen.dto.cond.ContentCond;
import cn.luischen.model.ContentDomain;
import cn.luischen.service.content.ContentService;
import cn.luischen.constant.Types;
import cn.luischen.dao.ContentDao;
import org.springframework.stereotype.Service;
import cn.luischen.dao.RelationShipDao;
import cn.luischen.dao.MetaDao;
import cn.luischen.model.RelationShipDomain;
import cn.luischen.exception.BusinessException;
import cn.luischen.constant.ErrorConstant;
import cn.luischen.service.meta.MetaService;
import cn.luischen.dto.MetaDto;
import cn.luischen.constant.WebConst;
import org.springframework.transaction.annotation.Transactional;

import static org.junit.Assert.fail;
import org.mockito.MockitoAnnotations;
import java.util.Map;
import org.junit.After;
import java.lang.reflect.Method;
import static org.junit.Assert.*;
import java.util.List;
import com.alibaba.fastjson.TypeReference;
import static org.junit.Assert.assertNotNull;
import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.*;
import org.powermock.reflect.Whitebox;
import org.mockito.Mock;
import org.junit.runner.RunWith;
import java.util.HashMap;
import java.util.ArrayList;
import com.alibaba.fastjson.JSONArray;
import org.powermock.core.classloader.annotations.PrepareForTest;
import static org.junit.Assert.assertEquals;
import org.powermock.modules.junit4.PowerMockRunner;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PowerMockIgnore;
import org.junit.rules.ExpectedException;
import org.mockito.InjectMocks;
import org.junit.Test;
import com.unitspirit.runtime.*;
import org.mockito.Mockito;
import com.alibaba.fastjson.JSON;
import org.junit.Rule;
import static org.junit.Assert.assertTrue;
import com.alibaba.fastjson.parser.ParserConfig;

/**
* The class <code>MetaServiceImplTest</code> contains tests for the class <code>{@link MetaServiceImpl}</code>.
* Copyright (c) 2020
* 
* @generatedBy UnitSpirit at 2021-09-07 17:52:02
* @version 1.0.20210903
*/

@PowerMockIgnore({ "javax.management.*" })
@RunWith(PowerMockRunner.class)
@PrepareForTest({ cn.luischen.dao.MetaDao.class })
public class MetaServiceImpl_getMetaList_WGTest {

	@InjectMocks
	cn.luischen.service.meta.impl.MetaServiceImpl unitspirit_fixture;
	@Mock
	cn.luischen.dao.MetaDao mock_MetaDao;
	@Mock
	cn.luischen.dao.RelationShipDao mock_RelationShipDao;
	@Mock
	cn.luischen.service.content.ContentService mock_ContentService;

	@Rule
	public ExpectedException unitspirit_thrown = ExpectedException.none();

	/**
	* 测试方法初始化.
	* 
	* @throws Exception 
	*         if the initialization fails for some reason 
	*  
	* @generatedBy UnitSpirit at 2021-09-07 17:52:02
	*/
	@org.junit.Before
	public void setUp() throws Exception {
		try {
			GlobalUnitInit.init();
			MockitoAnnotations.initMocks(this);
			ParserConfig.getGlobalInstance().setAutoTypeSupport(true);
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}

}
